package com.helloworld.apps.account.event.spring;

import org.springframework.context.ApplicationEvent;

/**
 * spring4.2之后可以不继承ApplicationEvent
 */
public class CustomSpringEvent extends ApplicationEvent {
    private final String message;

    public CustomSpringEvent(Object source, String message) {
        super(source);
        this.message = message;
    }
    public String getMessage() {
        return message;
    }
}
